package com.mlnx.netty.pojo;

/**
 * 24小时血压实体类
 *
 * @author zzb
 * @create 2019/5/15 13:50
 */
public class BpReport {
    private Long time;//血压测量时间
    private int sbp;//收缩压
    private int dbp;//舒张压
    private int avgBp;//平均压 = 舒张压 * 2 / 3 + 收缩压 / 3;
    private int hr;//心率
    private int sbpDbp;//脉压差 SBP-DBP
    private double bpHr;//血压心率乘积/1000
    private String position;//测量时体位
    private boolean sbpIsNormal;//该时间SBP血压是否正常
    private boolean dbpIsNormal;//该时间DBP血压是否正常

    public boolean isSbpIsNormal() {
        return sbpIsNormal;
    }

    public void setSbpIsNormal(boolean sbpIsNormal) {
        this.sbpIsNormal = sbpIsNormal;
    }

    public boolean isDbpIsNormal() {
        return dbpIsNormal;
    }

    public void setDbpIsNormal(boolean dbpIsNormal) {
        this.dbpIsNormal = dbpIsNormal;
    }

    public int getSbpDbp() {
        return sbpDbp;
    }

    public void setSbpDbp() {
        this.sbpDbp = this.sbp - this.dbp;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public int getSbp() {
        return sbp;
    }

    public void setSbp(int sbp) {
        this.sbp = sbp;
    }

    public int getDbp() {
        return dbp;
    }

    public void setDbp(int dbp) {
        this.dbp = dbp;
    }

    public int getAvgBp() {
        return avgBp;
    }

    public void setAvgBp() {

        this.avgBp = this.dbp * 2 / 3 + this.sbp / 3;
    }

    public int getHr() {
        return hr;
    }

    public void setHr(int hr) {
        this.hr = hr;
    }

    public double getBpHr() {
        return bpHr;
    }

    public void setBpHr() {
        this.bpHr = this.sbp * this.hr * 1.0 / 1000;//收缩压乘以心率/1000
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }
}
